import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';

import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {provideHttpClient, withInterceptors} from '@angular/common/http';
import {registerLocaleData} from '@angular/common';
import zh from '@angular/common/locales/zh';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {LoginComponent} from './page/login/login.component';
import {authInterceptor} from '../utils/Interceptor.service';
import {provideNzI18n, zh_CN} from "ng-zorro-antd/i18n";
import {ShareModule} from "./share/share.module";

registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    LoginComponent
  ],
  bootstrap: [AppComponent],
  imports: [BrowserModule,
    AppRoutingModule,
    BrowserAnimationsModule,
    FormsModule,
    ReactiveFormsModule,
    ShareModule
  ],
  providers: [provideNzI18n(zh_CN), provideHttpClient(withInterceptors([authInterceptor]))]
})
export class AppModule {
}

